//
//  MGGuideVC.m
//  MGFirstTimeJudge
//
//  Created by Jack_Jia on 16/3/14.
//  Copyright © 2016年 Jack_Jia. All rights reserved.
//

#import "MGGuideVC.h"
#import "ViewController.h"

@interface MGGuideVC ()

@end

@implementation MGGuideVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor lightGrayColor];
    self.title = @"我是引导页";
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    btn.frame = CGRectMake(0, 0, 200, 100);
    btn.center = CGPointMake(375/2, 667/2);
    [btn setTitle:@"next" forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(next) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
}
- (void)next{
    [self.navigationController pushViewController:[[ViewController alloc]init] animated:NO];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
